<div class="box-title has-cl"><h1>积分</h1>
  <form class="f-search" action="" method="post">
      <span class="s-field"><label>用户</label><input type="search" size="10" name="s[user_name]" value="<?php e_h($s['user_name'])?>"  /></span>
      <span class="s-field"><label>消费的用户</label><input type="search" size="10" name="s[f_user_name]" value="<?php e_h($s['f_user_name'])?>"  /></span>
      <span class="s-field"><label>月份</label><input type="search" size="6" onClick="WdatePicker({dateFmt:'yyyy-MM'})" name="s[month]" value="<?php e_h($s['month'])?>"  /></span>
      <input type="submit" class="sb" value="筛选"  />  
  </form>
</div>

<table class="ta-h" width="100%" id="dataList">
  <tr>
    <th width="80">用户</th>
    <th width="130">时间</th>
    <th width="80">点数</th>
    <th>备注</th>
    <th>消费的用户</th>
  </tr>
  <?php if($res){foreach($res as $v){?>
  <tr class="sl-i" i_ID="<?php echo $v['id'];?>">
    <td><?php e_h($v['userName'])?></td>
    <td><?php e_h($v['time']);?></td>
    <td class="txt-a-r"><?php e_h($v['value']);?></td>
    <td align="50"><?php e_h($v['note']);?></td>
    <td><?php e_h($v['f_userName'])?></td>
  </tr>
  <?php }?>
  <tr valign="bottom">
    <td colspan="2" class="txt-a-r">...<br />合计:</td>
    <td colspan="3"><?php echo $vlaueSum;?></td>
  </tr>
  <?php }?>
</table>
<?php $this->loadTemplate('paging');?>